import http from "@/libs/http";
class FormServer {
  async all(param) {
    let res = await http.get("/sys_form/all", param);
    return res;
  }

  async page(row) {
    let res = await http.post("/sys_form/page", row);
    return res;
  }

  async generate(row) {
    let res = await http.post("/sys_form/generate", row);
    return res;
  }

  async add(row) {
    let res = await http.post("/sys_form/add", row);
    return res;
  }

  async edit(row) {
    let res = await http.post("/sys_form/edit", row);
    return res;
  }

  async del(row) {
    let res = await http.post("/sys_form/del", row);
    return res;
  }
}

const formServer = new FormServer();
export default formServer;
